package com.dingwen.treasure.base.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 　LogicDelete
 * 　@author dingwen
 * 　@date 2022/6/14
 */
@Getter
@AllArgsConstructor
public enum LogicDeleteEnum implements BaseEnum<Integer> {
    /**
     * 已删除
     */
    DELETED(0, "删除"),
    /**
     *
     */
    EXISTED(1, "存在");
    /**
     * 状态值
     */
    @EnumValue
    private final Integer code;

    /**
     * 状态描述
     */
    private final String description;

    /**
     * 获取枚举类描述
     *
     * @return {@link String}
     */
    @Override
    public String getEnumDescription() {
        return "逻辑删除";
    }
}
